import { v4 as uuidv4 } from 'uuid'
export const getFiledValue = () => uuidv4().replace(/-/g, '').substring(0, 16)

export const isString = (item: any) => {
  return typeof item.value === 'string' && item.type === 'string'
}

export const isBoolean = (item: any) => {
  return typeof item.value === 'boolean' && item.type === 'switch'
}

